package com.ha7419x.vo;

import lombok.Data;

@Data
public class Result {

    private Integer code;

    private String message;

    private Object data;

    public Result(String message) {
        this.code = -1;
        this.message = message;
    }

    public Result(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public static Result ok() {
        return new Result(1, "操作成功");
    }
}
